package com.morgan.storageperlib.entity;

/**
 * @description 描    述：视频item
 * @author 作    者：caowugao
 */

public class VideoItem extends MediaItem {

    private long duration;//时间

    private String resolution;//分别率

    private String thumbPath;//略缩图

    /**
     * @param path
     * @param name
     */
    private VideoItem(String path, String name) {
        super(path, name);
    }

    /**
     * @param path
     * @param name
     * @param mimeType
     * @param thumbPath
     */
    public VideoItem(String path, String name, String thumbPath) {
        this(path, name);
        this.thumbPath = thumbPath;
    }

    /**
     * @return Returns the duration.
     */
    public long getDuration() {
        return duration;
    }

    /**
     * @param duration The duration to set.
     */
    public void setDuration(long duration) {
        this.duration = duration;
    }

    /**
     * @return Returns the resolution.
     */
    public String getResolution() {
        return resolution;
    }

    /**
     * @param resolution The resolution to set.
     */
    public void setResolution(String resolution) {
        this.resolution = resolution;
    }

    /**
     * @return Returns the thumbPath.
     */
    public String getThumbPath() {
        return thumbPath;
    }

    /**
     * @param thumbPath The thumbPath to set.
     */
    public void setThumbPath(String thumbPath) {
        this.thumbPath = thumbPath;
    }

}
